using System;
using System.Drawing;

using SdlDotNet.Graphics;

using Game.Utils;
using Game.Output;

namespace Game.Input.GUI
{
	public static class CMainMenu
	{
		private static Surface	m_surface;		
		private static Point	m_position;
		
		public static void Initialize()
		{
			CConsole.ReportClassInit(System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name);
			
			Size size = new Size(
				64 + (CGlobals.MAP_SIZE - 1) * 32 + (CGlobals.MAP_SIZE - 1) * 32,
				32 + (CGlobals.MAP_SIZE - 1) * 16 + (CGlobals.MAP_SIZE - 1) * 16
			);
			
			CSurfaceFactory.CreateSurface(out m_surface, size);
			
			m_position = new Point(0,0);
		}
		
		public static void Render(ref Surface p_surface)
		{
			p_surface.Blit(m_surface, m_position);
		}
		
	}
}
